<?php
/**
 * Created by JetBrains PhpStorm.
 * User: Azure
 * Date: 14/07/13
 * Time: 21:26
 * To change this template use File | Settings | File Templates.
 */
if (isset($_GET["idCat"])){
    $idCategoria = $_GET["idCat"];
}else{
    $idCategoria = 29;
}

?>

<?php foreach(getImagesFromCategory($idCategoria) as $k=>$v){
    $pathImg = $v->getSeccion()->getPath();
    $alquiler = "alquiler/";
    if ($v->getSeccion()->getId() == 0){
        $alquiler = "realizacion/";
    }
    ?>
    <img class="imgPrev prevImg" alt="<?=$k?>" style="<?=($k==0)?"":"display:none";?>" src="<?=$pathImg.$alquiler.$v->getFilename()?>">
    <div class="tituloImg" id="titleAlq<?=$k?>" style="<?=($k==0)?"":"display:none";?>">
        <?=$v->getCategoria()->getName()?>:&nbsp;<?=$v->getTitulo()?>
    </div>
<?php } ?>
<div class="controladorSlider">
    <img class="imgNextPrev" id="prevEscAlq" src="img/prev.png">
    <img class="imgNextPrev" id="nextEscAlq" src="img/next.png">
</div>